package com.tencent.smtt.sdk;

import android.content.Context;
import com.tencent.smtt.export.external.DexLoader;

/* loaded from: classes2.dex */
public class TbsVideoUtils {
    private static bf a;

    private static void a(Context context) {
        synchronized (TbsVideoUtils.class) {
            if (a == null) {
                o.a(true).b(context, false, false);
                bh b = o.a(true).b();
                DexLoader b2 = b != null ? b.b() : null;
                if (b2 != null) {
                    a = new bf(b2);
                }
            }
        }
    }

    public static void deleteVideoCache(Context context, String str) {
        a(context);
        bf bfVar = a;
        if (bfVar != null) {
            bfVar.a(context, str);
        }
    }

    public static String getCurWDPDecodeType(Context context) {
        a(context);
        bf bfVar = a;
        return bfVar != null ? bfVar.a(context) : "";
    }
}
